package com.ngm.tea.tea.service;

import java.util.List;

import com.ngm.tea.common.PageInfo;
import com.ngm.tea.tea.entity.Foods;

/**
 * 商品实例服务层
 * @author zjw
 * @version 1.0
 * @date 2017-01-03 15:51:34
 *
 */
public interface FoodsService {

	public void insert(Foods foods);// 新增

	public void deleteById(Long id);// 按ID删除

	public void deleteByIds(String ids);// 按ID批量删除

	public void delete(Foods foods);// 删除

	public void update(Foods foods);// 更新

	public Foods selectOne(Long id);// 按ID查询

	public List<Foods> selectAll();// 查询所有

	public List<Foods> selectList(Foods foods,PageInfo pageInfo);// 分页查询

	public Long count(Foods foods);// 统计查询

	public List<Foods> selectAllByGoodsId(Long goodsId);

}
